package com.longcai.service.nearby;

import java.util.Map;

import com.longcai.bean.ApiResult;
import org.springframework.web.multipart.MultipartFile;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.entity.nearby.ClyjNearbyShops;

/**
 * <p>
 * 附近商铺 服务类
 * </p>
 *
 * @author M
 * @since 2019-03-26
 */
public interface ClyjNearbyShopsService extends IService<ClyjNearbyShops> {


    /**
     * 查询附近页面分类
     *
     * @return
     */
    ApiResult getShopClass();

    /**
     * 获取附近首页分类子类
     *
     * @param shopsclass
     * @return
     */
    ApiResult getShopsClass(String shopsclass);


    /**
     * 查询附近店铺列表
     *
     * @return
     */
    ApiResult getShops(String country);

    /**
     * 查询附近店铺详情
     *
     * @param shopsid
     * @return
     */
    ApiResult getShopsInfo(String shopsid);

    /**
     * 附近店铺关键字搜索
     *
     * @param keyvalue
     * @return
     */
    ApiResult searchShop(String keyvalue, String lng, String lat, String country, String userId);

    /**
     * 查询附近店铺列表(根据距离排序)
     *
     * @param lng
     * @param lat
     * @param country
     * @return
     */
    ApiResult getShopsByAddress(String lng, String lat, String country, String distance);

    /**
     * 根据商铺类型查询
     *
     * @param shopType
     * @return
     */
    ApiResult getShopsByShopType(String shopType);

    /**
     * 根据商圈查询店铺
     *
     * @param tradingid
     * @return
     */
    ApiResult getShopByTradingArea(String tradingid);

    /**
     * 搜索显示候选词
     *
     * @param keyvalue
     * @return
     */
    Map<String, Object> getSearchNearkey(String keyvalue);


    boolean addShops(JSONObject params, MultipartFile aptitudePicture, MultipartFile corporateCardPic,
                     MultipartFile corporateBankCardPic, MultipartFile headPicture, MultipartFile pictureIn,
                     MultipartFile corporateCardPicBack, MultipartFile threeCardPic);

}
